<include file="public:header" />
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <include file="Public:sidebar" />
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">                
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        用户管理
                        <small><a href="{:U('create')}">添加用户</a></small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">用户管理</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <div class="box-header">
                                    <h3 class="box-title">用户列表</h3>
                                </div><!-- /.box-header -->
                                <div class="box-body table-responsive no-padding">
                                    <table class="table table-hover">
                                        <tbody><tr>
                                            <th>ID</th>
                                            <th>用户名</th>
                                            <th>Email</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                        <foreach name="users" item="user" key="key">
                                        <tr>
                                            <td>{$user.id}</td>
                                            <td>{$user.username}</td>
                                            <td>{$user.email}</td>
                                            <td><span class="label label-success">{$user.status}</span></td>
                                            <td>
                                                <a class="btn btn-sm btn-primary" href="{:U('edit',array('id'=>$user['id']))}">编辑</a>
                                                <form style="display:inline;" action="{:U('delete',array('id'=>$user['id']))}" method="post">
                                                    <input type="submit" value="删除" class="btn btn-sm btn-danger">
                                                </form>
                                            </td>
                                        </tr>
                                        </foreach>
                                    </tbody></table>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        </div>
                    </div>

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

<include file="Public:footer" />